package de.jlippert;


import javax.swing.*;

public class JRatingDemo {
       public static void main(String[] args) {
           SwingUtilities.invokeLater(new Runnable() {
               public void run() {
                   JFrame frame = new JFrame("JRating Demo");
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   JRating jRatingPanel = new JRating(2.5, false);
                   JLabel observerLabel = new JLabel();
                   jRatingPanel.setRatingLabel(observerLabel);
                   frame.getContentPane().add(jRatingPanel);
                   frame.getContentPane().add(observerLabel);
                   frame.setSize(250, 80);
                   frame.setVisible(true);
               }
           });
       }
}
